<?php
/**
 * @author  chensheng
***/

//使用示例
require('./ServerAPI.php');
//网易云信分配的账号，请替换你在管理后台应用下申请的Appkey
$AppKey = '0c5593725a8d4b318baa3f5acbfea9e8';
//网易云信分配的账号，请替换你在管理后台应用下申请的appSecret
$AppSecret = 'cf18f20fd67e463c8f02eae7984fda1d';
$p = new ServerAPI($AppKey,$AppSecret,'fsockopen');     //fsockopen伪造请求

//发送短信验证码
$re = $p->sendSmsCode($codeLen,$mobile,'','5') );

//发送模板短信
print_r( $p->sendSMSTemplate('6272',array('13888888888','13666666666'),array('0571' )));
